//
//  CustomOrderProductTableViewCell.m
//  ChunLaiZhuangClient
//
//  Created by zouzhisheng on 16/3/4.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "CustomOrderProductTableViewCell.h"

@implementation CustomOrderProductTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.headImageView.layer.borderColor=[UIColor colorWithHexString:@"f1f1f1"].CGColor;
    self.headImageView.clipsToBounds=YES;
    self.headImageView.layer.borderWidth=0.5;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)loadProductModel:(OrderProductModel*)productModel{
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:productModel.image] placeholderImage:nil];
    self.productNameLabel.text=productModel.name;
    self.priceLabel.text=productModel.price;
    self.numLabel.text=[NSString stringWithFormat:@"共 %@ 件",productModel.quantity];
}
@end
